{{extend 'layout.html'}}
    <style type="text/css">
    p {
        font-size: 12px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .listBig {
        /*width: 268px;*/
        max-width: 400px;
        height: 518px;
        border: 1px dotted #ccc;
        /*float:center; */
        align-items: center;
        /*
        margin-bottom:65px;
        margin-top:-5px;
        */
        margin:0 auto;
        padding:5px;
    }

    .listBig .options {
        width: 100%;
        height: 33px;
        line-height: 33px;
        /*border:1px solid red;*/
        padding-bottom: 5px;
        position: relative;
    }

    .listBig .options .orders {
        width: 19px;
        height: 28px;

        position: absolute;
        left: 0;
        top: 0;
    }

    .schoolMain {
        height: 100%;
        /*width: 223px;*/
        width: 93%;
        position: absolute;
        left: 28px;
        top: 0;
        right: 22px;
        border-bottom: 1px solid #ccc;
    }

    .schoolName {
        width: 150px;
        height: 28px;
        position: absolute;
        left: 0;
        top: 0;
    }

    .schoolName img {
        height: 100%;
        width: 28px;
        float: left;
    }

    .schoolName p {
        float: left;
        margin-left: 7px;

    }

    .options .people {
        width: 73px;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
    }
    </style>

    <div class="listBig">
        <b>境界天梯榜</b>
        <a href="#" title="早睡榜；早起榜；健身榜；阅读榜；持诵榜；奋斗榜；好人榜...敬请期待！">更多...</a>
        <p>
         共{{=max_rows}}位
        </p>
        {{for i,row in enumerate(rows):}}
        {{if i==items_per_page: break}}
        <div class="options">
            <div class="orders">
                <span>{{=row['rank']}}</span>
            </div>
            <div class="schoolMain">
                <div class="schoolName">
                    <p>{{=row['name']}}</p>
                </div>
                <div class="people">
                    <p>{{=row['level']['level_data'][2]}}
                        <span>{{=XML(row['level']['level_svg'])}}</span>
                    </p>
                </div>
            </div>
        </div>
        {{pass}}
        <p>
        {{pass}}
        <p>
        {{if page:}}
        <a href="{{=URL(args=[0])}}" class="btn btn-dark" style="float:left;margin-top:1px;">&laquo;</a>
        <a href="{{=URL(args=[page-1])}}" class="btn btn-dark" style="float:left;margin-top:1px;">&lsaquo;</a>
        {{pass}}
        {{if len(rows)>items_per_page:}}
        <a href="{{=URL(args=[max_page])}}" class="btn btn-dark" style="float:right;margin-top:1px;">&raquo;</a>
        <a href="{{=URL(args=[page+1])}}" class="btn btn-dark" style="float:right;margin-top:1px;">&rsaquo;</a>
        {{pass}}
    </div>
